<?php
/*******************************************************************************
 *
 *  Name: viewResolvedReports
 *
 *  Date: 05/03/2012
 *  
 *  Description: Shows a list of resolved reports that were related to a 
 *               resolved incident
 *  
 *  Author: David Jarman
 *  
 *  Todo:
 *     NONE
 *
 *  Modification History:  
 * 
 *   Date         Name
 *  ----------   --------------
 *  2012-04-26   DAVID JARMAN
 *  2012-04-26   DAVID JARMAN
 *  2012-04-26   DAVID JARMAN
 *  2012-05-03   DAVID JARMAN
 * 
 *****************************************************************************/
?>
<html>
    <head>
    </head>

    <body>
        <div style="text-align:center"><h3>View Resolved Reports</h3></div>
        <table border="2px" style="width:100%">
            <tr>
                <td>Report ID</td>
                <td>CR ID</td>
                <td>Location</td>
                <td>Report Time</td>
                <td>Details</td>
            </tr>
            <?php
                foreach($reports as $report)
                {
                    echo "<tr>";
                    echo "<td>".$report['ReportID']."</td>";
                    echo "<td>".$report['CustomerRepID']."</td>";
                    echo "<td>".$report['City']."</td>";
                    echo "<td>".$report['ReportTime']."</td>";
                    echo "<td>".anchor("manager/viewResolvedReport/".$report['ReportID'].'/', "View")."</td>";
                    echo "</tr>";
                }
            ?>
        </table>
    </body>
</html>
